|
|
|
|
|
|
|
Set db = DBEngine.OpenDatabase(strDBName)
'
With db
Set rsDynaset = .OpenRecordset(strRSName, dbOpenDynaset)
Set rsSnapshot = .OpenRecordset(strRSName, dbOpenSnapshot)
Set rsTable = .OpenRecordset(strRSName, dbOpenTable)
End With
'
End Sub
Public Sub CountRecs(rsTemp As Recordset, strType As String)
'
' count records in the object
'
Dim intCount As Integer
'
With rsTemp
.MoveFirst
.MoveLast
intCount = .RecordCount
End With
'
Me.Print vbTab, "Total for " & strType & ":"; intCount
'
End Sub
Public Sub SaveDynasetRec()
'
' save a single record
'
With rsDynaset
.MoveFirst
varRecords = .GetRows(1)
End With
'
End Sub
Public Sub DeleteDynasetRec()
'
' remove first record in the collection
'
With rsDynaset
.MoveFirst
.Delete
End With
'
End Sub
Public Sub RestoreDynasetRec()
'
' add saved rec back in
'
Dim intLoop As Integer
' |
|
|
|
|
|